package com.zc.entity;

import java.util.List;

public class Role {
    private Integer id;

    private String roleName;//角色名字

    private String remark;//备注

    private List<Permission> permissions;//拥有的权限集合

    private List<Path> paths;//该角色拥有的路径集合

    private String fatherLeaf;//父类角色

    private String creator;//创建者

    private String createTime;//创建时间

    private String deleter;//删除者

    private String deleteTime;//删除时间

    private int state;//角色使用状态(0:可用,1:删除)

    public List<Permission> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<Permission> permissions) {
        this.permissions = permissions;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName == null ? null : roleName.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getFatherLeaf() {
        return fatherLeaf;
    }

    public void setFatherLeaf(String fatherLeaf) {
        this.fatherLeaf = fatherLeaf;
    }

    public String getDeleter() {
        return deleter;
    }

    public void setDeleter(String deleter) {
        this.deleter = deleter;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(String deleteTime) {
        this.deleteTime = deleteTime;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public List<Path> getPaths() {
        return paths;
    }

    public void setPaths(List<Path> paths) {
        this.paths = paths;
    }
}